<template>
	<div>
		<div class="page has-navbar has-tabbar" v-nav="{title: '反馈历史', showBackButton: true}">
			<div class="page-content padding-top reserve-margin">
				<item v-for="item in res">
					<div class="feedback-history">
						<h5>{{item.feedbackCreateTime|filterDateForDayTime}}</h5>
						<div class="article">
							<img :src="imgUrl+item.feedbackImage+'.r_100xh_75'" width="100" height="75" onerror="javascript:this.src='static/images/default.png';" />反馈内容：{{item.feedbackContent}}
						</div>
					</div>					
				</item>
			</div>
		</div>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				imgUrl:imgUrl,
				res:[]
			}
		},
		methods:{			
			getHistory(){
				axios.get(baseUrl+'/controller/feedback/getFeedbackList',{params:{
					userId:sess.get('userSession').userId,
				}}).then(res=>{
					this.res = res.data.result
				})
			}
		},
		created(){
			this.getHistory()
		}
	}
</script>
<style scoped>
	.feedback{
		padding: 15px; background: #fff;
	}
	.feedback .car-editor-textarea{ border: 1px #999; border-style:dashed ;}
	.feedback .car-editor-textarea textarea{ padding: 10px; width: 100%; font-size: 12px;}
	.feedback-img{ font-size: 12px;}
	.feedback-img img{ max-width: 100%;}
	.feedback-img h5{ font-size: 12px; color: #999;}
</style>
